<div class="SipeiInfo border_3 pt20 pb20 centered back_bgf">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'POST',
    'id' => 'searchForm'));
    ?>
    <table class="fontc_666 height32">
        <tbody>
            <tr  height="55">
            <input type="hidden" id="addwheres3" name="info[addwheres]" value="<?php echo (!empty($data['model']['addwheres'])) ? str_replace('"',"`",$data['model']['addwheres']) : 1; ?>" />
			<input type="hidden" id="addwheres5" name="info[addwheres3]" value="1" />
			<input type="hidden" id="addwheres4" name="info[addwheres2]" value="1" />
                <td valign="top" width="125" align="right" class="pr5"><span class="pr5 fontc_orange_red">*</span>学生范围：</td>
                <td valign="top" width="370" class="formValidator_td">
                    <input type="text" readonly="readonly" id="range3" name="info[range]" value="<?php echo htmlspecialchars($data['model']['range']);//echo str_replace('"', '',$data['model']['range']); ?>" class="this_dialog2 col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" />
                    <div class="formValidator_tip">
                        <p id="rangeTip" ></p>
                    </div>
                    <div class="inputDialog inputDialog3" style="display:none;top:120px;left:118px;">
                        <ul>
                            <li style="clear:both;">
                                <span class='fl' style="width:64px;text-align:right;">栏位选择：</span>
                                <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                    <span class="fl select_shelter select_shelter2">
                                        <select id="type3" class="fl fontc_666 lanwei" onchange="valuechange2(this.value, $(this))">
                                         <option value="">全部</option>
                                          <?php foreach ($data['rowconfig'] as $k=>$v):?>
                                          <option value="<?php echo $k."-".$v;?>" id='s_<?php echo $k;?>'><?php echo $v;?></option>
                                          <?php endforeach;?> 
                                        </select>
                                    </span>
                                </span>
                            </li>
                            <li style="clear:both;display:none;" class="confirm3">
	                            <span class='fl' style="width:64px;text-align:right;">确认：</span>
	                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
	                                <span class="fl select_shelter select_shelter2">
	                                    <select class="fl fontc_666 caozuo" id="confirm3">		            
	                                        <option value="T">是</option>		            
	                                        <option value="F">否</option>
	                                    </select>
	                                </span>
	                            </span>
	                        </li>
	                        <li style="clear:both;display:none;" class="sex3">
	                            <span class='fl' style="width:64px;text-align:right;">性别：</span>
	                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
	                                <span class="fl select_shelter select_shelter2">
	                                    <select class="fl fontc_666 caozuo" id="sex3">		            
	                                        <option value="1">男</option>		            
	                                        <option value="2">女</option>
	                                    </select>
	                                </span>
	                            </span>
	                        </li>
                            <li style="clear:both;">
                                <span class='fl' style="width:64px;text-align:right;">操作符：</span>
                                <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                    <span class="fl select_shelter select_shelter2">
                                        <select class="fl fontc_666" id="where3"></select>
                                    </span>
                                </span>
                            </li>
                            <li style="clear:both;">
                                <span class='fl' style="width:64px;text-align:right;">值：</span>
                                <input type="text" id="value3" class="zhi pt6 pr9 pb6 pl9 border_3 border_c fontc_666" style="width:93px;"  />
                            </li>
                        </ul>
                        <div>
                            <input type="button" value="确定" onclick="addrange1()" class="an_ok b_a_n border_3 back_bgfyg cursor w80 height32 fontc_FFF fonts_12" style="margin-left:40px; margin-top:10px;" />
                            <input type="button" value="取消" class="an_no b_a_n border_3 back_bgb cursor w80 height32 fontc_FFF fonts_12" />
                        </div>
                    </div>
                </td>
            </tr>
            <tr height="55">
            	<td valign="top" align="right" class="pr5"><span class="pr5 fontc_orange_red">*</span>筛选条件：</td>
                <td valign="top" class="formValidator_td">
                    <input type="text" name="info[where]" id="where4" readonly="readonly" value='<?php echo htmlspecialchars($data['model']['where']); ?>'  class="this_dialog2 col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" />
                    <div class="formValidator_tip">
                        <p id="whereTip" ></p>
                    </div>
                    <div class="inputDialog3 inputDialog" style="display:none;top:178px;left:118px">
                        <ul>
                            <li style="clear:both;">
                                <span class='fl' style="width:64px;text-align:right;">栏位选择：</span>
                                <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                    <span class="fl select_shelter select_shelter2">
                                        <select id="type4" class="fl fontc_666 lanwei lwval" style="height:17px;">
                                            <option value="">全部</option>
                                                <?php foreach ($data['whereconfig'] as $k=>$v):?>
                                            <option value="<?php echo $k."-".$v;?>"><?php echo $v;?></option>
                                            <?php endforeach;?>
                                        </select>
                                    </span>
                                </span>
                            </li>
                            <li style="clear:both;display:none;" class="confirm4">
	                            <span class='fl' style="width:64px;text-align:right;">确认：</span>
	                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
	                                <span class="fl select_shelter select_shelter2">
	                                    <select class="fl fontc_666 caozuo" id="confirm4">		            
	                                        <option value="T">是</option>		            
	                                        <option value="F">否</option>
	                                    </select>
	                                </span>
	                            </span>
	                        </li>
	                        <li style="clear:both;">
	                            <span class='fl' style="width:64px;text-align:right;">操作符：</span>
	                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
	                                <span class="fl select_shelter select_shelter2">
	                                    <select class="fl fontc_666 caozuo" id="where4">		            
	                                        <option value=">-大于">大于</option>
											<option value=">=-大于">大于等于</option>
	                                        <option value="=-等于">等于</option>
	                                        <option value="<-小于">小于</option>
											<option value="<=-小于">小于等于</option>
	                                        <option value="!=-不等于">不等于</option>
	                                    </select>
	                                </span>
	                            </span>
	                        </li>
	                        <li style="clear:both;">
	                            <span class='fl' style="width:64px;text-align:right;">值：</span>
	                            <input type="text" id="value4" class="zhi pt6 pr9 pb6 pl9 border_3 border_c fontc_666" style="width:93px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
	                        </li>
	                        <li style="clear:both;">
	                            <span class='fl' style="width:64px;text-align:right;">增加条件：</span>
	                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
	                                <span class="fl select_shelter select_shelter2">
	                                    <select class="fl fontc_666" id="add4">	
	                                        <option value="">增加条件</option>	            
	                                        <option value="AND-并且">并且</option>
	                                        <option value="OR-或者">或者</option>
	                                    </select>
	                                </span>
	                            </span>
	                        </li>
                        </ul>
                        <div>
                            <input type="button" value="确定" onclick="addwhere3()"class="an_ok b_a_n border_3 back_bgfyg cursor w80 height32 fontc_FFF fonts_12" style="margin-left:40px; margin-top:10px;" />
                            <input type="button" value="取消" onclick="" class="an_no b_a_n border_3 back_bgb cursor w80 height32 fontc_FFF fonts_12" />
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" class="pr5">是否生效：</td>
                <td><input type="checkbox" name="info[status]" value='1' <?php if (!empty($data['model']['status'])): ?>checked<?php endif; ?>  /></td>
            </tr>
            <tr>
                <td align="right" valign="top" class="pt20 pr5">备注：</td>
                <td valign="top" class="pt20"><textarea class="col3 pt6 pr10 pb6 pl10 border_c border_3 fontc_666" name="info[remark]" ><?php echo $data['model']['remark']; ?></textarea></td>
            </tr>
            <tr>
                <td align="right" class="pt20 pr5 pb20"></td>
        <input type="hidden" name="info[id]" value="<?php echo $data['model']['id']; ?>">
        <td class="pt20 pb20">
            <input type="submit" value="保存" name="submit" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12 mr10" />
            <input type="button" value="取消"  onclick="api.close()" class="b_a_n border_3 back_bgb w80 height32 fontc_FFF fonts_12" />
        </td>
        </tr>
        </tbody>
    </table>
    <?php
    $this->endWidget();
    ?>
</div>
<script>
$(function() {
	$.formValidator.initConfig({formID: "searchForm", theme: "126", submitOnce: false,
	onError: function(msg, obj, errorlist) {
		$("#errorlist").empty();
		$.map(errorlist, function(msg) {
			$("#errorlist").append("<li>" + msg + "</li>")
		});
		alert(msg);
	},
	ajaxPrompt: '有数据正在异步验证，请稍等...'
	});
	/*学生范围验证*/
	$("#range4").formValidator({
		onShowText: "请输入学生范围",
		onShow: "",
		onFocus: "",
		onCorrect: "输入正确",
		leftTrim:true,
		rightTrim:true
	}).inputValidator({
		min: 1,
		onError: "学生范围不能为空"
	});
	/*筛选条件验证*/
	$("#where4").formValidator({
		onShowText: "请输入筛选条件",
		onShow: "",
		onFocus: "",
		onCorrect: "输入正确",
		leftTrim:true,
		rightTrim:true
	}).inputValidator({
		min: 1,
		onError: "筛选条件不能为空"
	});
	$(".this_dialog2").focus(function() {
		$(".inputDialog").hide();
		$(this).nextAll(".inputDialog").show();
	})
	$(".inputDialog3 .an_no").click(function() {
		$(this).parents(".inputDialog3").hide();
	})
	$(".inputDialog3 .an_ok").click(function() {
		$(this).parents(".inputDialog3").hide().prevAll(".this_dialog2").blur();;
	})
})

$(function(){
	var whereString1 = $("#addwheres3").val();  // 数据库原始的where条件
	var rangeString = $("#range3").val();		// 学生范围text值,用来判断是否有学生范围
 
	if(rangeString == "" || rangeString == "全部"){
		
		$("#addwheres4").val(whereString1);
		$("#addwheres5").val(1);
		
	}else{
		if(whereString1.indexOf("AND") > 0){
 
			$("#addwheres4").val(whereString1.substr((whereString1.indexOf("AND")+3)))
			$("#addwheres5").val(whereString1.substr(0,whereString1.indexOf("AND")))
		}else{
 
			$("#addwheres5").val(whereString1);
		}
	}
	
	var whereValue4 = $("#addwheres4").val();
	whereValue4 = whereValue4.substr((whereValue4.indexOf("(")+1));
	$("#addwheres4").val(whereValue4.substr(0,(whereValue4.indexOf(")"))));
	$("#addwheres3").val('');
})

$(function(){
	var srange1 = $("#addwheres5").val();
	var srange2 = $("#addwheres4").val();
	
	var selectid = srange1.substr(srange1.indexOf("`")+1);
	selectid = selectid.substr(0,selectid.indexOf("`"));
	$("#s_"+selectid).attr("selected",true);              //  学生栏位选择选中
	var selecteValue = $("#type3").val();
	var selectOne = $("#type3");
	valuechange2(selecteValue,selectOne);
	if(selectid == 'student_sex'){
		var sex = $.trim(srange1.substr(srange1.indexOf("=")+1));
		$("#sex3 option[value='"+sex+"']").attr("selected",true);
	}else if(selectid == 'nature' || selectid == 'statis'){
		var nature = $.trim(srange1.substr(srange1.indexOf("=")+1));
		if(nature.indexOf("T") >= 0){
			$("#confirm3 option[value='T']").attr("selected",true);
		}else{
			$("#confirm3 option[value='F']").attr("selected",true);
		}
	}else{
		if(srange1.indexOf("=") > 0){
			$("#where3 option[value='=-等于']").attr("selected",true);
		}else if(srange1.indexOf("NOT") >= 0){
			$("#where3 option[value='NOT IN-不包含']").attr("selected",true);
		}else{
			$("#where3 option[value='IN-包含']").attr("selected",true);
		}
		var textValue = srange1.substr(srange1.indexOf("'")+1);
		textValue = textValue.substr(0,textValue.indexOf("'"));
		$("#value3").val(textValue);
	}

})
function addrange1() {
	
	
	var whereID = $("#addwhere5");

	var whereString2  = '';                //  筛选条件
	var type3 = $('#type3').val();     // 学生范围的栏位 选择的是不是 全部

	if (type3 != '全部') {
		var type3strs = new Array();
		type3strs = type3.split("-");
	}

	if(type3 == '全部' || type3 == ''){
		$("#addwheres5").val(1);
		$("#range3").val('全部');


	}else {
		var where3 = $('#where3').val();    // 获取学生范围的操作符  大于  等于 小于 等
		if (where3 != null) {
			var where3strs = new Array();
			where3strs = where3.split("-");

		}
		if (type3strs[0] != '') {
			var rlist = type3strs[1];  //栏位名称
			var tlist = ' `'+type3strs[0]+'` ';  //栏位名称转化		
			if(type3strs[0]=='student_sex'){  //性别的值存储
				
				var rsex = $("#sex3").val();
				if(rsex==1){
					rlist += ' '+ '男';
				}else{
					rlist += ' '+ '女';
				}
				$("#range3").val(rlist);
				
				tlist += ' = '+ rsex;
				$("#addwheres5").val(tlist);

			}else if(type3strs[0]=='statis' || type3strs[0]=='nature'){  //学校性质
				
				var sVal = $("#confirm3").val();
				$("#range3").val(rlist+' '+sVal);
				
				tlist += " = '"+sVal+"' ";

				$("#addwheres5").val(tlist);

			}else{
				var value3 = $( "#value3" ).val();
				var where = $("#where").val();
				if( value3 == "" ){
					//alert( "请输入值" );
					//$("#addwheres3").val("");
					//$("#range3").val("");
					//return false;
				}
	
					if(where3strs[1]){
						
						if(value3){
							rlist += ' '+where3strs[1]; // 栏位符号
							rlist += " '"+value3+"'"; //栏位值
						}else{
							rlist += " 为空"; //栏位值
						}
					}
					$("#range3").val(rlist);
					if(where3strs[0]){
					if(value3 != ""){
						tlist += ' '+where3strs[0];  //栏位条件转化
						
							if(where3strs[0] == "IN" || where3strs[0] == "NOT IN"){
								var value3 = value3.replace(new RegExp(/(、)/g),',');
								var value1 = value1.replace(new RegExp(/(，)/g),',');
								var value1 = value1.replace(new RegExp(/(,)/g),',');
								
								value3 =  value3.replace(new RegExp(/([\\%'"></])/g),'\\$1')
								if(value3.indexOf(",") >= 0){
									var value3 = value3.replace(/(^,+)/,"").replace(/,+$/,"");
									var array = value3.split(",");
									var value3 = '';
									for (var i=0 ; i< array.length ; i++){
										if(array[i] != ''){
											value3 +=  "'"+array[i]+"',";  //栏位值
										}
									}
									var value3 = value3.replace(/,+$/,"");
									
								tlist += "("+value3+") ";  //栏位值
								}else{
									tlist += ' (\''+value3+'\') ';  //栏位值
								}
								
								//tlist += ' ("'+value3+'") ';  //栏位值
								
							}else{
								tlist += " '"+value3+"' ";	  //栏位值
							}
						}else{
							tlist += " IS NULL";
						}
					}
					$("#addwheres5").val(tlist);
			}

		}
	}
	$( ".inputDialog" ).hide();
}
var addHTML = "<ul>" + $( ".inputDialog3:last ul" ).html() +"</ul>";
function addwhere3() {
	var addwheres = $("#addwheres4").val();
	
	if( $(".confirm4:hidden").length <= 0 ){  //是否统计分数判断
		var lwval = $(".lwval").val();
		var lwArr = lwval.split("-");
		if(lwArr[1]){
			$("#where4").val( lwArr[1]+' = '+$("#confirm4").val() );
		}
		
		if(lwArr[0]){
			$("#addwheres3").val(addwheres + '' +lwArr[0]+' = "'+$("#confirm4").val()+'" ' );
		}
		return false;
	}
	
	
	var type4 = $(".inputDialog3:last ul:eq(0)").find('#type4').val();
	var value4 = $(".inputDialog3:last ul:last").find('#value4').val();
	var where4 = $("#where4").val(),
		//range4 = $("#range4").val(),
		data = [],
		ulLen = $( ".inputDialog3:last > ul" ).length;
	if( type4 != "" && value4 == "" && $( ".inputDialog3:last > ul:last li.confirm4:visible" ).length < 1 ){
		alert( "请输入值" );
		return false;
	}
	var whereS = '',
		inputVal = "";

		if(type4==''){
			inputVal = "全部";
			$("#addwheres4").val(1);
			
		}else{
			for( var i=0; i<ulLen; i++ ){
				var thisUl = $( ".inputDialog3:last > ul" ).eq(i);
				if( thisUl.find( ".confirm4:visible" ).length > 0 ){
					data.push({
						val : {
							type : thisUl.find( "#type4" ).val(),
							confirm2 : $.trim(thisUl.find( "#confirm4 option:selected" ).text())
					  	},
					  	strs : {
					  		typeStrs : thisUl.find( "#type4" ).val().split("-"),
					  		confirm2Strs : thisUl.find( "#confirm4" ).val()
						}
					});

				}else{
					data.push({
						val : {
							type : thisUl.find( "#type4" ).val(),
							where : thisUl.find( "#where4" ).val(),
							value : thisUl.find( "#value4" ).val(),
							add : thisUl.find( "#add4" ).val()
					  	},
					  	strs : {
					  		typeStrs : thisUl.find( "#type4" ).val().split("-"),
							whereStrs : thisUl.find( "#where4" ).val().split("-"),
							valueStrs : thisUl.find( "#value4" ).val(),
							addStrs : thisUl.find( "#add4" ).val().split("-")
						}
					});
				}
			}
			
			$.each(data,function(i,item){
				var thisUl = $( ".inputDialog3:last > ul" ).eq(i);
			
				if( thisUl.find( ".confirm4:visible" ).length > 0 ){
					whereS += " `"+ item.strs.typeStrs[0] + "`="+ "'"+item.strs.confirm2Strs+"'";
					inputVal += " "+ item.strs.typeStrs[1] + " "+ item.val.confirm2;
					
				}else{
					if( !item.strs.addStrs[0] ){
						item.strs.addStrs[0] = "";
						item.strs.addStrs[1] = "";
					}
				
					whereS += " `"+ item.strs.typeStrs[0] + "` "+ item.strs.whereStrs[0] + " "+ "'"+item.strs.valueStrs+"'" + " "+ item.strs.addStrs[0];
					inputVal += " "+ item.strs.typeStrs[1] + " "+ item.strs.whereStrs[1] + " "+ item.strs.valueStrs + " "+ item.strs.addStrs[1];
				}
			});	
		}
	
	$("#where4").val( inputVal );
	$("#addwheres4").val(whereS);
	$(".inputDialog3:last ul:eq(0)").nextAll("ul").remove();
	$(".inputDialog3:last ul:eq(0) li.confirm4").hide().nextAll().show();
	$(".inputDialog3:last ul:eq(0) select").removeAttr("disabled").find("option:eq(0)").attr( "selected",true );
	$(".inputDialog3:last ul:eq(0) input").removeAttr("disabled").val("");
}

$( "#add4" ).change(function(){
	var val = $(this).val(),$this = $(this),
		_thisUL = $(this).parent().parent().parent().parent();
	if( val=="AND-并且" || val=="OR-或者" ){

		if( _thisUL.find( "#type4" ).val() == "" ){
			alert( "您的栏位选择的是全部，不能继续添加条件了" );
			$(this).find( "option:eq(0)" ).attr("selected",true);
			return false;
		}
		
		if( _thisUL.find( "#value4" ).val() == "" ){
			alert( "值不能为空" );
			$(this).find( "option:eq(0)" ).attr("selected",true);
			return false;
		}
		$( ".inputDialog3:last > div" ).before( addHTML );
		$( ".inputDialog3:last > ul:last" ).find( "#type3" ).find( "option:eq(0)" ).remove();
		$( ".inputDialog3:last > ul:last" ).find(".confirm2:last").show().nextAll().hide();

		$(this).attr( "disabled","disabled" );
		_thisUL.find( "select,input" ).attr( "disabled","disabled" );
		$( this ).parents( ".inputDialog3" ).children( "ul:last" ).find( "#add4" ).change(function(){
			var _thisUL = $(this).parent().parent().parent().parent();
			if( _thisUL.find( "#type4" ).val() == "" ){
				alert( "您的栏位选择的是全部，不能继续添加条件了" );
				$(this).find( "option:eq(0)" ).attr("selected",true);
				return false;
			}
			if( _thisUL.find( "#value4" ).val() == "" ){
				alert( "值不能为空" )
				$(this).find( "option:eq(0)" ).attr("selected",true);
				return false;
			}
			var val = {
					type : _thisUL.find('#type4').val(),
					where : _thisUL.find('#where4').val(),
					value : _thisUL.find('#value4').val(),
					add : _thisUL.find('#add4').val()
				};
			judgment( val,_thisUL,0,$this )
		})
	}
	
})

function judgment( thisVal,thisUL,num,$this ){
	
	var ulLen = thisUL.parent().find( "ul" ).length;
	if( num == parseInt(ulLen)-1){
		thisUL.find( "select,input" ).attr( "disabled","disabled" );
		$this.change();
		return true;
	}
	var _thisVal = {
			type : thisUL.parent().find( "ul" ).eq(num).find('#type4').val(),
			where : thisUL.parent().find( "ul" ).eq(num).find('#where4').val(),
			value : thisUL.parent().find( "ul" ).eq(num).find('#value4').val(),
			add : thisUL.parent().find( "ul" ).eq(num).find('#add4').val()
	}
	if( _thisVal.type == thisVal.type && _thisVal.where == thisVal.where && _thisVal.value == thisVal.value  ){
		alert( "条件语句不能重复，亲重新填写" )
		return false;
	}

	judgment( thisVal,thisUL,num+1,$this )
}


//选择值
function valuechange2(type, id) {

	var typestrs = new Array();
	typestrs = type.split("-");

	if( type == "statis-是否统计" || type == "nature-学校性质" ){
		id.parents(".inputDialog").find(".confirm3:last").show().nextAll().hide();
		return false;
	}else{
		id.parents(".inputDialog").find(".confirm3:last").hide().nextAll().show();
	}
	if( type == "student_sex-性别" ){
		id.parents(".inputDialog").find(".sex3").show().nextAll().hide();
		return false;
	}else{
		id.parents(".inputDialog").find(".sex3").hide().nextAll().not( ".confirm3" ).show();
	}
	
	var newHtml2 = "", where3='', typesText = ",姓名,准考号,城市代码,城市简称,学校代码,学校名称,班级名称,科别代码,科别名称",typesText1=",性别,是否统计,学校性质";
	if( type == ""  ){
		where3="";
	}else if( typesText1.indexOf( typestrs[1] ) > 0  ){
		where3="";
	}else if( typesText.indexOf( typestrs[1] ) > 0 ){
		where3="<option value='=-等于'>等于</option>";
		where3 += "<option value='IN-包含'>包含</option>";
		where3 += "<option value='NOT IN-不包含'>不包含</option>";
	}else{
		where3 = "<option value='=-等于'>等于</option>";
		where3 += "<option value='>-大于'>大于</option>";
		where3 += "<option value='<-小于'>小于</option>";
		where3 += "<option value='!=-不等于'>不等于</option>";
		where3 += "<option value='IN-包含'>包含</option>";
		where3 += "<option value='NOT IN-不包含'>不包含</option>";
	}
	$("#value4").val("");
	$("#where3").html(where3);
}

$( "#type4" ).live("change",function(){
	var vals = $(this).val();
	if(vals=="statis-是否统计分数" || vals == "score-是否统计"){
		$(this).parents(".inputDialog").find(".confirm4:last").show().nextAll().hide();
	}else{
		$(this).parents(".inputDialog").find(".confirm4:last").hide().nextAll().show();
	}
});


function on_load(){
	windows.location.reload();
}
</script>
<?php exit; ?>